package com.lsl.service.impl;

import com.lsl.bean.User;
import com.lsl.mapper.UserMapper;
import com.lsl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();
    }

    @Override
    public User selectById(int id) {
        return userMapper.selectById(id);
    }

    @Override
    public int deleteById(int id) {
        return userMapper.deleteById(id);
    }

    @Override
    public int insertInfo(User user) {
        return userMapper.insertInfo(user);
    }

    @Override
    public int updateById(User user) {
        return userMapper.updateById(user);
    }
}
